fix regression -- bad query
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 31 Dec 2006 01:32:02 +0000 (01:32 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 31 Dec 2006 01:32:02 +0000 (01:32 +0000)
includes/Title.php

index 98e2dce..40375a7 100644 (file)
@@ -1335,7 +1335,7 @@ class Title {
                if( $this->exists() ) {
                        if( !$this->mRestrictionsLoaded ) {
                                $dbr =& wfGetDB( DB_SLAVE );
-                               $res = $dbr->selectField( 'page', 'page_restrictions', $this->getArticleId() );
+                               $res = $dbr->selectField( 'page', 'page_restrictions', array( 'page_id' => $this->getArticleId() ) );
                                $this->loadRestrictions( $res );
                        }
                        return isset( $this->mRestrictions[$action] )